// craco.config.js
const path = require("path");
const WebpackBar = require("webpackbar");

module.exports = {
  webpack: {
    configure: (webpackConfig, { env, paths }) => {
      // 开启持久化缓存
      webpackConfig.cache.type = "filesystem";
      return webpackConfig;
    },
    alias: {
      "@": path.resolve(__dirname, "src")
    },
    plugins: [new WebpackBar()]
  }
};
